//封装函数
function $(ele){
    return typeof ele === "string"?document.getElementById(ele):null;
}
function getClass(ele){
    return typeof ele === "string"?document.querySelector(ele):null;
}
function getClassName(ele){
    return typeof ele === "string"?document.getElementsByClassName(ele):null;
}